package com.zixuan.gulicollege.eduservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zixuan.gulicollege.entity.eduservice.EduCourse;
import com.zixuan.gulicollege.entity.eduservice.vo.CourseInitFrontVO;
import com.zixuan.gulicollege.entity.eduservice.vo.CoursePublishVO;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author zixuan
 * @since 2021-05-08
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 发布课程前数据查询
     * @param courseId
     * @return
     */
    CoursePublishVO getPublishCourseInfo(String courseId);

    /**
     * 根据课程id查询前台课程数据
     * @param id
     * @return
     */
    CourseInitFrontVO getCourseFrontById(String id);
}
